import React, { Component } from 'react'
import { Route } from 'react-router-dom'

//让普通组件获取路由配置信息
function MyWithRouter(Com) {
  return class index extends Component {
    render() {
      return <Route component={Com}></Route>
    }
  }
}
export default MyWithRouter
